$mainFontColor: #ffffff;
$secondaryFontColor: #16a085;
$thirdFontColor: #373737;
$buttonColor: #16a085;
$backgroundColor: #f5f6f7;

// GLOBAL

body {
 // width: 100%;
  font-family: 'Varela Round', sans-serif;
  margin: 0 auto;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

// menu and jumbotron

header {
  background-image: url(../images/header/headerBackground.png);
  background-size: cover;
  height: 745px;
}

.nav {
  display: flex;
  flex-direction: row;
  justify-content: center;
  ul {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: baseline;
    margin-top: 40px;
    flex-wrap: wrap;
    a {
      font-size: 16px;
      text-decoration: none;
      text-transform: uppercase;
      color: $mainFontColor;
      font-weight: bold;
      letter-spacing: 2px;
      cursor: pointer;
      &:hover {
        text-decoration: underline;
      }
    }
  }
}

.slogan {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 247px;
  color: $mainFontColor;
  h1 {
    font-size: 36px;
    letter-spacing: 5px;
    font-weight: bold;
    text-transform: uppercase;
  }
  p {
    font-size: 16px;
    letter-spacing: 2px;
    margin-top: 13px;
    margin-bottom: 26px;
  }
  button {
    width: 166px;
    height: 49px;
    border-radius: 3px;
    background-color: $buttonColor;
    color: $mainFontColor;
    font-family: 'Varela Round', sans-serif;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 2px;
    border-width: 0;
    cursor: pointer;
    &:hover {
      background-color: $mainFontColor;
      color: $buttonColor;
    }
  }
}

.socialIcons {
  display: flex;
  justify-content: center;
  margin-top: 221px;
  i {
    width: 23px;
    height: 20px;
    color: $mainFontColor;
  }
  .fa-flickr {
    margin-left: 15px;
    margin-right: 15px;
  }
}

// first section

.firstContainer {
  background-color: $backgroundColor;
}

.first {
  height: 494px;
  display: flex;
  justify-content: space-evenly;
  position: relative;
  .simplePhoto {
    //margin-left: 129px;
    padding-top: 113px;
    max-width: 428px;
    display: inline-block;
    h3 {
      font-size: 18px;
      letter-spacing: 3px;
      color: $secondaryFontColor;
      font-weight: bold;
      margin-bottom: 49px;
      text-transform: uppercase;
    }
    p {
      font-size: 12px;
      letter-spacing: 2px;
      line-height: 24px;
      color: $thirdFontColor;
      margin-bottom: 47px;
    }
    button {
      width: 166px;
      height: 49px;
      border-radius: 3px;
      background-color: $buttonColor;
      color: $mainFontColor;
      font-family: 'Varela Round', sans-serif;
      text-transform: uppercase;
      font-weight: bold;
      font-size: 12px;
      letter-spacing: 2px;
      border-width: 0;
      cursor: pointer;
      &:hover {
        background-color: $thirdFontColor;
        color: $mainFontColor;
      }
    }
  }
  .hand {
    margin-top: 91px;
    max-width: 637px;
    img {
      width: 100%;
      max-width: 637px;
    }
  }
}

// second section

.secondContainer {
  height: 559px;
  background-color: $mainFontColor;
  z-index: 2;
  position: relative;
}

.second {
  display: flex;
  justify-content: space-between;
  position: relative;
  max-height: 100%;
  .phone {
    margin-top: 144px;
    img {
      width: 100%;
    }
  }
  .design {
    max-width: 513px;
    margin-top: 144px;
    h3 {
      font-size: 18px;
      letter-spacing: 3px;
      line-height: 22px;
      color: $secondaryFontColor;
      font-weight: bold;
      text-transform: uppercase;
      margin-bottom: 44px;
    }
    p {
      font-size: 12px;
      max-width: 433px;
      letter-spacing: 2px;
      line-height: 22px;
      color: $thirdFontColor;
      margin-bottom: 41px;
    }
    button {
      width: 166px;
      height: 49px;
      border-radius: 3px;
      background-color: $buttonColor;
      color: $mainFontColor;
      font-family: 'Varela Round', sans-serif;
      text-transform: uppercase;
      font-weight: bold;
      font-size: 12px;
      letter-spacing: 2px;
      border-width: 0;
      cursor: pointer;
      &:hover {
        background-color: $thirdFontColor;
        color: $mainFontColor;
      }
    }
  }
  .angle {
    margin-top: 44px;
    p {
      font-size: 12px;
      letter-spacing: 2px;
      line-height: 22px;
      color: $thirdFontColor;
      font-weight: bold;
      margin-bottom: 0;
    }
    i {
      font-size: 25px;
      margin-right: 10px;
    }
  }
}

// third section

.thirdContainer {
  height: 484px;
  background-color: $backgroundColor;
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
}

.communityAngle {
  display: flex;
  justify-content: flex-end;
  i {
    font-size: 25px;
    margin-right: 10px;
  }
}

.third {
  display: flex;
  justify-content: space-between;
  .community {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    img {
      width: 59px;
      height: 59px;
    }
    h4 {
      font-size: 16px;
      letter-spacing: 2px;
      line-height: 20px;
      color: $thirdFontColor;
      font-weight: bold;
      text-transform: uppercase;
      padding-top: 31px;
      padding-bottom: 24px;
    }
    p {
      max-width: 177px;
      font-size: 10px;
      letter-spacing: 2px;
      color: $thirdFontColor;
      text-align: center;
    }
  }
  .pictures {
    min-width: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    img {
      max-width: 100%;
    }
  }
}

// fourth section

.fourthContainer {
  height: 790px;
  background-image: url(../images/main/Livello3.png);
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fourth {
  display: flex;
  justify-content: center;
  .subscribe {
    display: flex;
    flex-direction: column;
    justify-content: center;
    h2 {
      font-size: 24px;
      letter-spacing: 4px;
      color: $mainFontColor;
      font-weight: bold;
      text-transform: uppercase;
      margin-bottom: 34px;
    }
    .input {
      display: flex;
      justify-content: center;
      input {
        max-width: 280px;
        height: 60px;
        border-radius: 3px;
        border-width: 0;
        &::placeholder {
          font-size: 16px;
          letter-spacing: 2px;
          color: $thirdFontColor;
          text-transform: uppercase;
          text-align: center;
        }
      }
      button {
        width: 62px;
        height: 62px;
        border-radius: 3px;
        background-color: $buttonColor;
        border-width: 0;
        cursor: pointer;
        &:hover {
          background-color: $thirdFontColor;
          color: $mainFontColor;
        }
        i {
          font-size: 20px;
          color: $mainFontColor;
        }
      }
    }
  }
}
// fifth section

.fifthContainer {
  height: 397px;
  background-color: $backgroundColor;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fifth {
  display: flex;
  justify-content: center;
  .download {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    h2 {
      font-size: 20px;
      letter-spacing: 3px;
      color: $thirdFontColor;
      font-weight: bold;
      text-transform: uppercase;
      margin-bottom: 16px;
    }
    p {
      max-width: 877px;
      font-size: 12px;
      letter-spacing: 2px;
      line-height: 22px;
      color: $thirdFontColor;
      text-align: center;
      text-transform: uppercase;
      margin-bottom: 40px;
    }
    .store {
      display: flex;
      justify-content: space-between;
    }
  }
}

.appleStore, .playStore {
  max-width: 316px;
  display: flex;
  align-items: center;
  margin: 5px;
  &:hover {
    .storeBtn, .faApple, .faAndroid {
      background-color: $thirdFontColor;
      cursor: pointer;
    }
  }
}
.storeBtn {
    max-width: 240px;
    height: 56px;
    border-radius: 3px;
    background-color: #1abc9c;
    border-width: 0;
    font-size: 16px;
    letter-spacing: 2px;
    color: $mainFontColor;
    font-weight: bold;

}

.faApple, .faAndroid {
  width: 56px;
  height: 56px;
  border-radius: 3px;
  background-color: $buttonColor;
  color: $mainFontColor;
  font-size: 24px;
  border-width: 0;
}


// footer

.footer {
  height: 130px;
  display: flex;
  align-items: center;
}

.copyright {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  ul {
    display: flex;
    flex-direction: row;
    margin-bottom: 23px;
    a {
      text-decoration: none;
      font-size: 14px;
      letter-spacing: 2px;
      color: $thirdFontColor;
      font-weight: bold;
      text-transform: uppercase;
    }
    span {
      margin-right: 5px;
      margin-left: 5px;
      color: $buttonColor;
      width: 3px;
    }
  }
  img {
    margin-left: auto;
  }
}

//up button

#up {
  position: fixed;
  bottom: 10px;
  right: 5%;
  left: 95%;
  max-width: 40px;
  width: 100%;
  font-size: 12px;
  border-color: rgba(85, 85, 85, 0.2);
  background-color: $buttonColor;
  border-radius: 4px;
  padding: 5px;
  z-index: 10;
  &:hover {
    background-color: $thirdFontColor;
  }
  i {
    font-size: 16px;
  }
}

// media queries

@media (max-width: 918px) {
  .third .pictures img:last-child {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .slogan h1 {
    font-size: 26px;
}
.first .simplePhoto {
  padding: 5px;
}
.first .simplePhoto h3 {
  margin-bottom: 0;
  margin-top: 5px;
}
.first .simplePhoto p {
  margin-bottom: 0;
}
.second .phone {
  margin-top: 10px;
}
.second .design {
  margin-top: 10px;
}
.third .community h4 {
  font-size: 12px;
}
.fourth .subscribe h2 {
  font-size: 18px;
}
#up {
  display: none;
}
}